package com.sakila.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sakila.pojo.Film;
import com.sakila.pojo.other.Page;

public interface FilmDao extends BaseDao<Film> {
	List<Film> findByProperties(@Param("page")Page page, @Param("film")Film film);
	List<Film> findByPropertiesAndActor(
			@Param("page")Page page, 
			@Param("film")Film film, 
			@Param("actor")String actor);
	Long getTotalNumOfRowsByPropertiesAndActor(
			@Param("film")Film film, 
			@Param("actor")String actor);
}
